import {defineConfig} from "electron-vite";

export default defineConfig({
    main: {
        build: {
            rollupOptions: {
                output: {
                    dir: "out",
                    entryFileNames: "main.js"
                }
            }
        }
    },
    preload: {
        build: {
            emptyOutDir: false,
            rollupOptions: {
                output: {
                    dir: "out",
                    entryFileNames: "preload.cjs"
                }
            }
        }
    },
    renderer: {
        root: "src/renderer",
        build: {
            emptyOutDir: false,
            rollupOptions: {
                output: {
                    dir: "out",
                    entryFileNames: "index.js"
                }
            },
        }
    },
})